package com.android.youwenchuang.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;
import org.greenrobot.greendao.annotation.Generated;
import java.util.Date;

@Entity(
        indexes = {
                @Index(value = "date DESC")
        }
)
public class Car {

    @Id(autoincrement = true)
    private Long id;

    private int number;

    private Long goodsId;

    // 购买人
    private Long userId;

    private java.util.Date date;

@Generated(hash = 1137720860)
public Car(Long id, int number, Long goodsId, Long userId,
        java.util.Date date) {
    this.id = id;
    this.number = number;
    this.goodsId = goodsId;
    this.userId = userId;
    this.date = date;
}

@Generated(hash = 625572433)
public Car() {
}

public Long getId() {
    return this.id;
}

public void setId(Long id) {
    this.id = id;
}

public int getNumber() {
    return this.number;
}

public void setNumber(int number) {
    this.number = number;
}

public Long getGoodsId() {
    return this.goodsId;
}

public void setGoodsId(Long goodsId) {
    this.goodsId = goodsId;
}

public Long getUserId() {
    return this.userId;
}

public void setUserId(Long userId) {
    this.userId = userId;
}

public java.util.Date getDate() {
    return this.date;
}

public void setDate(java.util.Date date) {
    this.date = date;
}

}
